//
//  GameViewFactory.m
//  2048
//
//  Created by 高新川 on 15/6/8.
//  Copyright (c) 2015年 高新川. All rights reserved.
//

#import "GameViewFactory.h"
#import "GameViewObject.h"
#import "GameViewFour.h"
#import "GameViewFive.h"
#import "GameViewSix.h"


@implementation GameViewFactory

+ (GameViewObject *)createGameView:(int)matrix {
    GameViewObject *view = nil;
    
    switch (matrix) {
        case 4:
            view = [[GameViewFour alloc] init];
            break;
            
        case 5:
            view = [[GameViewFive alloc] init];
            break;
            
        case 6:
            view = [[GameViewSix alloc] init];
            break;
            
        default:
            view = [[GameViewFour alloc] init];
            break;
    }
    
    return view;
}

@end
